<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
<script type="text/javascript">
	function getUrlParam(name) {
		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
		var r = window.location.search.substr(1).match(reg); //匹配目标参数
		if (r != null)
			return unescape(r[2]);
		return null; //返回参数值
	}
	var shareType = getUrlParam("shareType");
	if (shareType == 1) {
		window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + getUrlParam("appId") + "&redirect_uri=" + getUrlParam("urlPath") + "/wx-web/controller/wx/getCar&response_type=code&scope=snsapi_userinfo&state="
				+ getUrlParam("id") + "#wechat_redirect";
	} else if (shareType == 2) {
		window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + getUrlParam("appId") + "&redirect_uri=" + getUrlParam("urlPath") + "/wx-web/controller/wx/getShop&response_type=code&scope=snsapi_userinfo&state="
				+ getUrlParam("id") + "#wechat_redirect";
	}
</script>
</html>
